
ifeq ("$(TOPDIR)","")
TOPDIR:=$(CURDIR)/../..
endif
TOPDIR:=$(patsubst %/,%,$(subst \,/,$(TOPDIR)))

CFLAGS =
CXXFLAGS =
EXTRA_INC =
EXTRA_LIBS =

SDK_INC = $(TOPDIR)/core/inc
SDK_INC += $(TOPDIR)/core/inc/hal
SDK_INC += $(TOPDIR)/core/inc/net
SDK_INC += $(TOPDIR)/core/inc/ipv4
SDK_INC += $(TOPDIR)/core/inc/ipv6
SDK_INC += $(TOPDIR)/core/inc/lwip

SDK_LIBS = -L$(TOPDIR)/core/lib -lsdk_api

CROSS_COMPILE ?= arm-none-eabi-

AS = $(CROSS_COMPILE)as
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
LD = $(CROSS_COMPILE)ld
OBJCOPY = $(CROSS_COMPILE)objcopy
SIZE = $(CROSS_COMPILE)size
STRIP = $(CROSS_COMPILE)strip
AR = $(CROSS_COMPILE)ar


RM = CMD /C DEL /F /Q
RMDIR = CMD /C RMDIR /S /Q
MKDIR = CMD /C MKDIR